package com.demo.ribbon.server.custom.controller;

import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.math.RandomUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class HelloController {
    @GetMapping("hello")
    public String hello() {
        log.info("Access hello");
        int randomNum = RandomUtils.nextInt();
        return "hello-" + randomNum;
    }


}
